package com.strive.village.mapper;

import com.strive.village.entity.TbResident;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

@Repository
public interface TbResidentMapper extends BaseMapper<TbResident> {
    /**
     * 按照年龄区间 返回村民人数
     *
     * @param ageRangeStart
     * @param ageRangeEnd
     */
    int getResidentCountByAge(int ageRangeStart, int ageRangeEnd);
}
